<%@ page language="java" contentType="text/html; charset=GB18030"
    pageEncoding="GB18030"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB18030">
    <title>My JSP 'index.jsp' starting page</title>
  <jsp:include page="common/header-common.jsp"></jsp:include>
  </head>
  
  <body>
  <jsp:include page="common/menu.jsp"></jsp:include>
  <jsp:include page="common/pager.jsp"></jsp:include>
  
  <div style="text-align: center;">
  	<table>
  <s:iterator value="pages" id="magazine" status="stat">
  
  	<s:if test="#stat.index%4==0">
  		<tr>
  	</s:if>
  	<td>
  		<div style="margin: 20px;">
  		<span id="magazineImg">
  			<a href="itemlist.action?magazineid=<s:property value="#magazine.id" />" style="text-decoration: none;">
  			<img border="0" alt="<s:property value="#magazine.name" />" src="<s:property value="#magazine.image" />">
  			</a>
  		</span>
  		<br />
  		<span id="magazineName" style="font-weight:bold;font-size:16px;">
  			<a href="itemlist.action?magazineid=<s:property value="#magazine.id" />">
  			<s:property value="#magazine.name" />
  			</a>
  		</span>
  		</div>
  	</td>
  	<s:if test="(#stat.index+1)%4==0">
  		</tr>
  	</s:if>
  </s:iterator>
  </table>
	</div>
  
  <jsp:include page="common/footer.jsp"></jsp:include>
  </body>
</html>
